﻿// -----------------------------------------------------------------------
// <copyright file="ErrorDescription.cs">
// Copyright (c) 2012-2013 Andrey Veselov. All rights reserved.
// License:  Microsoft Public License (MS-PL)
// Contacts: http://andrey.moveax.com  andrey@moveax.com
// </copyright>
// -----------------------------------------------------------------------

namespace Moveax.Mvc.ErrorHandler
{
    using System;
    using System.Web;

    public class ErrorDescription
    {
        public int HttpCode { get; private set; }

        public Exception Exception { get; private set; }

        public HttpRequest Request { get; private set; }

        internal ErrorDescription(int httpCode, Exception exception, HttpRequest request)
        {
            this.HttpCode = httpCode;
            this.Exception = exception;
            this.Request = request;
        }
    }
}